package jike.demo15.code02;

import java.util.HashMap;
import java.util.Map;

public class Gson {

    public <T> String  toJson(T t){
        return t.toString();
    }

    public Map<String, String> fromJson(String gsonStr, Class<Map> mapClass) {
        Map<String, String> map = new HashMap<String, String>();
        map.put(gsonStr, mapClass.getName());
        return map;
    }
}
